#ifndef __PROJECT_REMOTE_DEVICE_CONTEXT__
#define __PROJECT_REMOTE_DEVICE_CONTEXT__

#include "common/rc_status.h"
#include "common/fifo.h"
#include "device/exec_thread.h"

typedef struct _context
{
    int recvFIFO;
    int sendFIFO;
    char buff[FIFO_BUFFER_SIZE];
    ExecThread tpool[THREAD_POOL_SIZE];
} Context;

RCStatus ContextCreate(Context** context);
void ContextDestroy(Context** context);

RCStatus ContextHandle(Context* context);

RCStatus CMDRecv(Context* context);
RCStatus ACKSND(Context* context);

#endif // __PROJECT_REMOTE_DEVICE_CONTEXT__